package com.onedec.entity;

import java.util.ArrayList;
import java.util.List;

public class OnedecArchiveExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OnedecArchiveExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andArchiveIdIsNull() {
            addCriterion("archive_id is null");
            return (Criteria) this;
        }

        public Criteria andArchiveIdIsNotNull() {
            addCriterion("archive_id is not null");
            return (Criteria) this;
        }

        public Criteria andArchiveIdEqualTo(Integer value) {
            addCriterion("archive_id =", value, "archiveId");
            return (Criteria) this;
        }

        public Criteria andArchiveIdNotEqualTo(Integer value) {
            addCriterion("archive_id <>", value, "archiveId");
            return (Criteria) this;
        }

        public Criteria andArchiveIdGreaterThan(Integer value) {
            addCriterion("archive_id >", value, "archiveId");
            return (Criteria) this;
        }

        public Criteria andArchiveIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("archive_id >=", value, "archiveId");
            return (Criteria) this;
        }

        public Criteria andArchiveIdLessThan(Integer value) {
            addCriterion("archive_id <", value, "archiveId");
            return (Criteria) this;
        }

        public Criteria andArchiveIdLessThanOrEqualTo(Integer value) {
            addCriterion("archive_id <=", value, "archiveId");
            return (Criteria) this;
        }

        public Criteria andArchiveIdIn(List<Integer> values) {
            addCriterion("archive_id in", values, "archiveId");
            return (Criteria) this;
        }

        public Criteria andArchiveIdNotIn(List<Integer> values) {
            addCriterion("archive_id not in", values, "archiveId");
            return (Criteria) this;
        }

        public Criteria andArchiveIdBetween(Integer value1, Integer value2) {
            addCriterion("archive_id between", value1, value2, "archiveId");
            return (Criteria) this;
        }

        public Criteria andArchiveIdNotBetween(Integer value1, Integer value2) {
            addCriterion("archive_id not between", value1, value2, "archiveId");
            return (Criteria) this;
        }

        public Criteria andArchiveNameIsNull() {
            addCriterion("archive_name is null");
            return (Criteria) this;
        }

        public Criteria andArchiveNameIsNotNull() {
            addCriterion("archive_name is not null");
            return (Criteria) this;
        }

        public Criteria andArchiveNameEqualTo(String value) {
            addCriterion("archive_name =", value, "archiveName");
            return (Criteria) this;
        }

        public Criteria andArchiveNameNotEqualTo(String value) {
            addCriterion("archive_name <>", value, "archiveName");
            return (Criteria) this;
        }

        public Criteria andArchiveNameGreaterThan(String value) {
            addCriterion("archive_name >", value, "archiveName");
            return (Criteria) this;
        }

        public Criteria andArchiveNameGreaterThanOrEqualTo(String value) {
            addCriterion("archive_name >=", value, "archiveName");
            return (Criteria) this;
        }

        public Criteria andArchiveNameLessThan(String value) {
            addCriterion("archive_name <", value, "archiveName");
            return (Criteria) this;
        }

        public Criteria andArchiveNameLessThanOrEqualTo(String value) {
            addCriterion("archive_name <=", value, "archiveName");
            return (Criteria) this;
        }

        public Criteria andArchiveNameLike(String value) {
            addCriterion("archive_name like", value, "archiveName");
            return (Criteria) this;
        }

        public Criteria andArchiveNameNotLike(String value) {
            addCriterion("archive_name not like", value, "archiveName");
            return (Criteria) this;
        }

        public Criteria andArchiveNameIn(List<String> values) {
            addCriterion("archive_name in", values, "archiveName");
            return (Criteria) this;
        }

        public Criteria andArchiveNameNotIn(List<String> values) {
            addCriterion("archive_name not in", values, "archiveName");
            return (Criteria) this;
        }

        public Criteria andArchiveNameBetween(String value1, String value2) {
            addCriterion("archive_name between", value1, value2, "archiveName");
            return (Criteria) this;
        }

        public Criteria andArchiveNameNotBetween(String value1, String value2) {
            addCriterion("archive_name not between", value1, value2, "archiveName");
            return (Criteria) this;
        }

        public Criteria andArchiveAddressIsNull() {
            addCriterion("archive_address is null");
            return (Criteria) this;
        }

        public Criteria andArchiveAddressIsNotNull() {
            addCriterion("archive_address is not null");
            return (Criteria) this;
        }

        public Criteria andArchiveAddressEqualTo(String value) {
            addCriterion("archive_address =", value, "archiveAddress");
            return (Criteria) this;
        }

        public Criteria andArchiveAddressNotEqualTo(String value) {
            addCriterion("archive_address <>", value, "archiveAddress");
            return (Criteria) this;
        }

        public Criteria andArchiveAddressGreaterThan(String value) {
            addCriterion("archive_address >", value, "archiveAddress");
            return (Criteria) this;
        }

        public Criteria andArchiveAddressGreaterThanOrEqualTo(String value) {
            addCriterion("archive_address >=", value, "archiveAddress");
            return (Criteria) this;
        }

        public Criteria andArchiveAddressLessThan(String value) {
            addCriterion("archive_address <", value, "archiveAddress");
            return (Criteria) this;
        }

        public Criteria andArchiveAddressLessThanOrEqualTo(String value) {
            addCriterion("archive_address <=", value, "archiveAddress");
            return (Criteria) this;
        }

        public Criteria andArchiveAddressLike(String value) {
            addCriterion("archive_address like", value, "archiveAddress");
            return (Criteria) this;
        }

        public Criteria andArchiveAddressNotLike(String value) {
            addCriterion("archive_address not like", value, "archiveAddress");
            return (Criteria) this;
        }

        public Criteria andArchiveAddressIn(List<String> values) {
            addCriterion("archive_address in", values, "archiveAddress");
            return (Criteria) this;
        }

        public Criteria andArchiveAddressNotIn(List<String> values) {
            addCriterion("archive_address not in", values, "archiveAddress");
            return (Criteria) this;
        }

        public Criteria andArchiveAddressBetween(String value1, String value2) {
            addCriterion("archive_address between", value1, value2, "archiveAddress");
            return (Criteria) this;
        }

        public Criteria andArchiveAddressNotBetween(String value1, String value2) {
            addCriterion("archive_address not between", value1, value2, "archiveAddress");
            return (Criteria) this;
        }

        public Criteria andArchiveProjectIdIsNull() {
            addCriterion("archive_project_id is null");
            return (Criteria) this;
        }

        public Criteria andArchiveProjectIdIsNotNull() {
            addCriterion("archive_project_id is not null");
            return (Criteria) this;
        }

        public Criteria andArchiveProjectIdEqualTo(Integer value) {
            addCriterion("archive_project_id =", value, "archiveProjectId");
            return (Criteria) this;
        }

        public Criteria andArchiveProjectIdNotEqualTo(Integer value) {
            addCriterion("archive_project_id <>", value, "archiveProjectId");
            return (Criteria) this;
        }

        public Criteria andArchiveProjectIdGreaterThan(Integer value) {
            addCriterion("archive_project_id >", value, "archiveProjectId");
            return (Criteria) this;
        }

        public Criteria andArchiveProjectIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("archive_project_id >=", value, "archiveProjectId");
            return (Criteria) this;
        }

        public Criteria andArchiveProjectIdLessThan(Integer value) {
            addCriterion("archive_project_id <", value, "archiveProjectId");
            return (Criteria) this;
        }

        public Criteria andArchiveProjectIdLessThanOrEqualTo(Integer value) {
            addCriterion("archive_project_id <=", value, "archiveProjectId");
            return (Criteria) this;
        }

        public Criteria andArchiveProjectIdIn(List<Integer> values) {
            addCriterion("archive_project_id in", values, "archiveProjectId");
            return (Criteria) this;
        }

        public Criteria andArchiveProjectIdNotIn(List<Integer> values) {
            addCriterion("archive_project_id not in", values, "archiveProjectId");
            return (Criteria) this;
        }

        public Criteria andArchiveProjectIdBetween(Integer value1, Integer value2) {
            addCriterion("archive_project_id between", value1, value2, "archiveProjectId");
            return (Criteria) this;
        }

        public Criteria andArchiveProjectIdNotBetween(Integer value1, Integer value2) {
            addCriterion("archive_project_id not between", value1, value2, "archiveProjectId");
            return (Criteria) this;
        }

        public Criteria andArchiveBak1IsNull() {
            addCriterion("archive_bak1 is null");
            return (Criteria) this;
        }

        public Criteria andArchiveBak1IsNotNull() {
            addCriterion("archive_bak1 is not null");
            return (Criteria) this;
        }

        public Criteria andArchiveBak1EqualTo(String value) {
            addCriterion("archive_bak1 =", value, "archiveBak1");
            return (Criteria) this;
        }

        public Criteria andArchiveBak1NotEqualTo(String value) {
            addCriterion("archive_bak1 <>", value, "archiveBak1");
            return (Criteria) this;
        }

        public Criteria andArchiveBak1GreaterThan(String value) {
            addCriterion("archive_bak1 >", value, "archiveBak1");
            return (Criteria) this;
        }

        public Criteria andArchiveBak1GreaterThanOrEqualTo(String value) {
            addCriterion("archive_bak1 >=", value, "archiveBak1");
            return (Criteria) this;
        }

        public Criteria andArchiveBak1LessThan(String value) {
            addCriterion("archive_bak1 <", value, "archiveBak1");
            return (Criteria) this;
        }

        public Criteria andArchiveBak1LessThanOrEqualTo(String value) {
            addCriterion("archive_bak1 <=", value, "archiveBak1");
            return (Criteria) this;
        }

        public Criteria andArchiveBak1Like(String value) {
            addCriterion("archive_bak1 like", value, "archiveBak1");
            return (Criteria) this;
        }

        public Criteria andArchiveBak1NotLike(String value) {
            addCriterion("archive_bak1 not like", value, "archiveBak1");
            return (Criteria) this;
        }

        public Criteria andArchiveBak1In(List<String> values) {
            addCriterion("archive_bak1 in", values, "archiveBak1");
            return (Criteria) this;
        }

        public Criteria andArchiveBak1NotIn(List<String> values) {
            addCriterion("archive_bak1 not in", values, "archiveBak1");
            return (Criteria) this;
        }

        public Criteria andArchiveBak1Between(String value1, String value2) {
            addCriterion("archive_bak1 between", value1, value2, "archiveBak1");
            return (Criteria) this;
        }

        public Criteria andArchiveBak1NotBetween(String value1, String value2) {
            addCriterion("archive_bak1 not between", value1, value2, "archiveBak1");
            return (Criteria) this;
        }

        public Criteria andArchiveBak2IsNull() {
            addCriterion("archive_bak2 is null");
            return (Criteria) this;
        }

        public Criteria andArchiveBak2IsNotNull() {
            addCriterion("archive_bak2 is not null");
            return (Criteria) this;
        }

        public Criteria andArchiveBak2EqualTo(String value) {
            addCriterion("archive_bak2 =", value, "archiveBak2");
            return (Criteria) this;
        }

        public Criteria andArchiveBak2NotEqualTo(String value) {
            addCriterion("archive_bak2 <>", value, "archiveBak2");
            return (Criteria) this;
        }

        public Criteria andArchiveBak2GreaterThan(String value) {
            addCriterion("archive_bak2 >", value, "archiveBak2");
            return (Criteria) this;
        }

        public Criteria andArchiveBak2GreaterThanOrEqualTo(String value) {
            addCriterion("archive_bak2 >=", value, "archiveBak2");
            return (Criteria) this;
        }

        public Criteria andArchiveBak2LessThan(String value) {
            addCriterion("archive_bak2 <", value, "archiveBak2");
            return (Criteria) this;
        }

        public Criteria andArchiveBak2LessThanOrEqualTo(String value) {
            addCriterion("archive_bak2 <=", value, "archiveBak2");
            return (Criteria) this;
        }

        public Criteria andArchiveBak2Like(String value) {
            addCriterion("archive_bak2 like", value, "archiveBak2");
            return (Criteria) this;
        }

        public Criteria andArchiveBak2NotLike(String value) {
            addCriterion("archive_bak2 not like", value, "archiveBak2");
            return (Criteria) this;
        }

        public Criteria andArchiveBak2In(List<String> values) {
            addCriterion("archive_bak2 in", values, "archiveBak2");
            return (Criteria) this;
        }

        public Criteria andArchiveBak2NotIn(List<String> values) {
            addCriterion("archive_bak2 not in", values, "archiveBak2");
            return (Criteria) this;
        }

        public Criteria andArchiveBak2Between(String value1, String value2) {
            addCriterion("archive_bak2 between", value1, value2, "archiveBak2");
            return (Criteria) this;
        }

        public Criteria andArchiveBak2NotBetween(String value1, String value2) {
            addCriterion("archive_bak2 not between", value1, value2, "archiveBak2");
            return (Criteria) this;
        }

        public Criteria andArchiveBak3IsNull() {
            addCriterion("archive_bak3 is null");
            return (Criteria) this;
        }

        public Criteria andArchiveBak3IsNotNull() {
            addCriterion("archive_bak3 is not null");
            return (Criteria) this;
        }

        public Criteria andArchiveBak3EqualTo(String value) {
            addCriterion("archive_bak3 =", value, "archiveBak3");
            return (Criteria) this;
        }

        public Criteria andArchiveBak3NotEqualTo(String value) {
            addCriterion("archive_bak3 <>", value, "archiveBak3");
            return (Criteria) this;
        }

        public Criteria andArchiveBak3GreaterThan(String value) {
            addCriterion("archive_bak3 >", value, "archiveBak3");
            return (Criteria) this;
        }

        public Criteria andArchiveBak3GreaterThanOrEqualTo(String value) {
            addCriterion("archive_bak3 >=", value, "archiveBak3");
            return (Criteria) this;
        }

        public Criteria andArchiveBak3LessThan(String value) {
            addCriterion("archive_bak3 <", value, "archiveBak3");
            return (Criteria) this;
        }

        public Criteria andArchiveBak3LessThanOrEqualTo(String value) {
            addCriterion("archive_bak3 <=", value, "archiveBak3");
            return (Criteria) this;
        }

        public Criteria andArchiveBak3Like(String value) {
            addCriterion("archive_bak3 like", value, "archiveBak3");
            return (Criteria) this;
        }

        public Criteria andArchiveBak3NotLike(String value) {
            addCriterion("archive_bak3 not like", value, "archiveBak3");
            return (Criteria) this;
        }

        public Criteria andArchiveBak3In(List<String> values) {
            addCriterion("archive_bak3 in", values, "archiveBak3");
            return (Criteria) this;
        }

        public Criteria andArchiveBak3NotIn(List<String> values) {
            addCriterion("archive_bak3 not in", values, "archiveBak3");
            return (Criteria) this;
        }

        public Criteria andArchiveBak3Between(String value1, String value2) {
            addCriterion("archive_bak3 between", value1, value2, "archiveBak3");
            return (Criteria) this;
        }

        public Criteria andArchiveBak3NotBetween(String value1, String value2) {
            addCriterion("archive_bak3 not between", value1, value2, "archiveBak3");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}